* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.main_div {
  padding-left: 15px;
  padding-right: 15px;
  min-height: calc(100vh - 40px);
  background-color: #FFF;
}

.main_div_img {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.grid-image {
  width: 80rpx;
  height: 80rpx;
  margin-bottom: 8rpx;
}

.main_div_img_img {
  width: 28px;
  height: 28px;
}

.main_div_img_img2 {
  margin-left: 4px;
  width: 20px;
  height: 28px;
}

.main_div_img_text {
  font-size: 16px;
  color: #333;
  margin-left: 4px;
  font-weight: 500;
}



.test-content {
  text-align: center;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
}

.test-content text {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.main_div_notice {
  height: 40px;
  width: 100%;
  background-color: rgba(255, 220, 171, 0.521);
}

.notice-content {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 15px;
  overflow: hidden;
}

.notice-text {
  font-size: 14px;
  color: rgb(255, 149, 0);
  white-space: nowrap;
  animation: scroll-text 15s linear infinite;
}

.grid-text {
  font-size: 20rpx;
  color: #666;
  text-align: center;
  line-height: 1.2;
  /* #ifndef APP-PLUS */
  box-sizing: border-box;
  /* #endif */
}

@keyframes scroll-text {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* H5环境特殊处理 */
/* #ifdef H5 */
.main_div {
  /* padding-top: 60px; */
  /* 为自定义导航栏留出空间 */
}

/* 确保内容在视口内可见 */
.main_div_img,
.test-content {
  max-width: 100%;
  overflow: hidden;
}

/* #endif */

/* 宫格布局优化 */
.grid-container {
  background-color: #fff;
  border-radius: 12px;
  margin-top: 20px;
  /* margin: 20px;
  padding: 20px; */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 自定义网格布局 */
.custom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20rpx;
  width: 100%;
}

.grid-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid-item-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20rpx 10rpx;
  width: 100%;
  min-height: 100rpx;
  transition: all 0.3s ease;
}

.grid-item-content:active {
  transform: scale(0.95);
  opacity: 0.8;
}


